package hc.uco


abstract class BaseController {

	def auth() {
		if(!session.usuario) {
			def originalRequestParams = [controller:controllerName, action:actionName]
			originalRequestParams.putAll(params)
			session.originalRequestParams = originalRequestParams
			
			redirect(controller:'usuario',action:'login')
			return false
		}
	}
}
